package cn.com.dhcc.turbo.service;

import cn.com.dhcc.app.core.test.BaseTest;

/**
 * 
 * @author qiao
 * @2014-5-30 @上午10:01:33
 */
public class RegistTestThj extends BaseTest{

	/*@Autowired
	NodeCommunicateClient communicateClient;
	@Autowired
	NodeCommunicateService communicateService;
	@Test
	public void testRegistRequest(){
		
		String nodeInstallUrl = "http://localhost:8087/turbo";
		System.out.println(nodeInstallUrl);
		NodeCommunicateService communicateService =   NodeCommunicateClient.getRemoteNodeCommunicateService(nodeInstallUrl);
		communicateService.receiveExchRel();
		try {
		   communicateClient.sendExchRelRequest(nodeInstallUrl);
		} catch (ServiceException e) {
			e.printStackTrace();
		} catch (NiceException e) {
			e.printStackTrace();
		}
	}
	@Test
	public void testSync(){
		
		try {
			NodeInfo nodeInfo = communicateService.getLocalNodeInfo();
			communicateClient.syncInfoToAll("节点基本信息", JsonUtil.toJson(nodeInfo), SyncType.NODE_INFO, SyncOperType.UPDATE);
		} catch (NiceException e) {
			e.printStackTrace();
		} catch (ServiceException e) {
			e.printStackTrace();
		}
	}*/
	
}
